package com.logisticsmanagement.core;

import java.util.ArrayList;

public class TransportPayment {

	private int startCityID;
	private int endCityID;
	private String startCityName;
	private String endCityName;
	private double price;
	private int nextCityID;
	int[][] path = new int[50][50];
	int[][] dist = new int[50][50];

	public TransportPayment(int startCityID ,int endCityID) {
		this.startCityID = startCityID;
		this.endCityID = endCityID;
		
		Floyd floyd = new Floyd();
		floyd.floyd(path,dist);//path[i][j]表示i到j下一站
		this.price = dist[startCityID][endCityID];
		this.nextCityID = path[startCityID][endCityID];
	}

	
	public int getNextCityID() {
		return nextCityID;
	}


	public void setNextCityID(int nextCityID) {
		this.nextCityID = nextCityID;
	}


	public int getStartCityID() {
		return startCityID;
	}

	public void setStartCityID(int startCityID) {
		this.startCityID = startCityID;
	}

	public int getEndCityID() {
		return endCityID;
	}

	public void setEndCityID(int endCityID) {
		this.endCityID = endCityID;
	}

	public String getStartCityName() {
		return startCityName;
	}

	public void setStartCityName(String startCityName) {
		this.startCityName = startCityName;
	}

	public String getEndCityName() {
		return endCityName;
	}

	public void setEndCityName(String endCityName) {
		this.endCityName = endCityName;
	}

	public double getPrice() {

		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
}
